#pragma once
#include "SDL.h"
#include "OptimiseImage.h"

class Layer
{
protected:
	//SDL_Surface image;
	short scrollingSpeed;
	short followSpeed;
	short sizeModifier;
	OptimiseImage op;

public:
	Layer(void);
	~Layer(void);
	virtual void draw(SDL_Surface* screen,SDL_Rect * camera);
	virtual void update(SDL_Rect* camera);
	virtual void freeSurface(){}
	void apply_surface(int x, int y,SDL_Surface* source, SDL_Surface* destination,SDL_Rect * camera=NULL);
};

